package 策略模式.three;

/**
 * @author xuanjian
 * 橡皮鸭子
 */
public class RubberDuck extends Duck{

	public RubberDuck() {
		flyBehavior = new FlyNoWay();
		quackBehavior = new Squeak();
	}
	
	@Override
	void display() {
		System.out.println("外观：橡皮");

	}
	
	@Override
	void type() {
		System.out.println("种类：橡皮鸭");
		
	}

}
